package com.ruoyi.insurance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.insurance.mapper.WebSafeIncidentMapper;
import com.ruoyi.insurance.domain.WebSafeIncident;
import com.ruoyi.insurance.service.IWebSafeIncidentService;

/**
 * 网络安全事件Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-16
 */
@Service
public class WebSafeIncidentServiceImpl implements IWebSafeIncidentService 
{
    @Autowired
    private WebSafeIncidentMapper webSafeIncidentMapper;

    /**
     * 查询网络安全事件
     * 
     * @param incidentId 网络安全事件主键
     * @return 网络安全事件
     */
    @Override
    public WebSafeIncident selectWebSafeIncidentByIncidentId(Integer incidentId)
    {
        return webSafeIncidentMapper.selectWebSafeIncidentByIncidentId(incidentId);
    }

    /**
     * 查询网络安全事件列表
     * 
     * @param webSafeIncident 网络安全事件
     * @return 网络安全事件
     */
    @Override
    public List<WebSafeIncident> selectWebSafeIncidentList(WebSafeIncident webSafeIncident)
    {
        return webSafeIncidentMapper.selectWebSafeIncidentList(webSafeIncident);
    }

    /**
     * 新增网络安全事件
     * 
     * @param webSafeIncident 网络安全事件
     * @return 结果
     */
    @Override
    public int insertWebSafeIncident(WebSafeIncident webSafeIncident)
    {
        return webSafeIncidentMapper.insertWebSafeIncident(webSafeIncident);
    }

    /**
     * 修改网络安全事件
     * 
     * @param webSafeIncident 网络安全事件
     * @return 结果
     */
    @Override
    public int updateWebSafeIncident(WebSafeIncident webSafeIncident)
    {
        return webSafeIncidentMapper.updateWebSafeIncident(webSafeIncident);
    }

    /**
     * 批量删除网络安全事件
     * 
     * @param incidentIds 需要删除的网络安全事件主键
     * @return 结果
     */
    @Override
    public int deleteWebSafeIncidentByIncidentIds(Integer[] incidentIds)
    {
        return webSafeIncidentMapper.deleteWebSafeIncidentByIncidentIds(incidentIds);
    }

    /**
     * 删除网络安全事件信息
     * 
     * @param incidentId 网络安全事件主键
     * @return 结果
     */
    @Override
    public int deleteWebSafeIncidentByIncidentId(Integer incidentId)
    {
        return webSafeIncidentMapper.deleteWebSafeIncidentByIncidentId(incidentId);
    }
}
